<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="myTags" tagdir="/WEB-INF/tags/components" %>
<%@ page import="data.ContentTypeDB" %>
<%@ page import="data.FriendDB" %>

<!-- Author: Minh-Tuan Ta -->

<div id="friendsDiv">
	<h2>Friends</h2>
	<div id="requestFriendList">
		<h3>Friend Requests</h3>
		<c:forEach var="requestFriend" items="${requestFriends }">
			<myTags:FriendRequest requestUser="${requestFriend }"></myTags:FriendRequest>
		</c:forEach>
	</div>
	<div id="friendList">
		<h3>Friend List</h3>
		<c:forEach var="friend" items="${friends }">
			<myTags:SmallUserBlock user="${friend }"></myTags:SmallUserBlock>
			<form action="DeleteFriend" method="post">
				<input type="hidden" name="userID" value ="${friend.userID }" />
				<input type="submit" name="submit" value="Delete Friend" />
			</form>
		</c:forEach>
	</div>
</div>